package com.zhongc.advance.order;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
 *用户密保查询修改order
 *
 * @Description
 *
 * @Version 1.0
 *
 * @Author zhongc
 *
 * @Email zhong_ch@foxmail.com
 *
 * @History
 *<li>Author: zhongc</li>
 *<li>Date: 2015年7月14日</li>
 *<li>Version: 1.0</li>
 *<li>Content: create</li>
 *
 */
public class UserSecurityAddOrder implements Serializable{

    private static final long serialVersionUID = -7317808510163746204L;

    /** 用户密保问题主键 */
    @NotBlank(message = "用户密保问题主键不能为空")
    private String securityId;

    /** 用户密保问题主键 */
    @NotBlank(message = "userId不能为空")
    private String userId;

    /** 用户密保问题主键 */
    @NotBlank(message = "密保问题ID不能为空")
    private String questionId;

    /** 用户密保问题主键 */
    @NotBlank(message = "用户密保问题答案不能为空")
    private String answer;

    /** 用户密保问题主键 */
    @NotNull(message = "时间")
    private Date createTime;

    public String getSecurityId() {
        return securityId;
    }

    public void setSecurityId(String securityId) {
        this.securityId = securityId == null ? null : securityId.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId == null ? null : questionId.trim();
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "UserSecurityAddOrder{" +
                "securityId='" + securityId + '\'' +
                ", userId='" + userId + '\'' +
                ", questionId='" + questionId + '\'' +
                ", answer='" + answer + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}